<template>
    <div>
        app----- 
        <!-- 自定义函数 events -->
        <Appchild @events="apps($event)"></Appchild>
    </div>
</template>
<script>
import Appchild from './Appchild.vue'
export default {
    data(){
        return {
            app:"胡歌"
        }
    },
    components:{
        Appchild
    },
    methods: {
        apps(data,index) {
            // 接收子组件传参
             console.log('appp---',this.app,data,index);
           
        }
    }
}
</script>